package com.kabigon.tiny.handler;

import org.springframework.stereotype.Component;

import javax.annotation.PreDestroy;

@Component
public class GracefulShutdownHandler {

    @PreDestroy
    public void performCleanup() {
        // 在应用程序关闭时执行清理操作
        System.out.println("在应用程序关闭期间执行清理...");
    }
}
